﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MailListGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.Message.MailListGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">

            mlg = new FantastPlatform.UI.MailListGrid({
                renderTo: 'mlg_div',
                url: '../Service/MailList.aspx?Action=Search',
                border: false,
                width: tabs.getInnerWidth() - 2,
                height: tabs.getInnerHeight() - 2,
                tbar: [{
                    text: '添加',
                    iconCls: 'add',
                    tooltip: {
                        text: '添加联系人',
                        title: '添加联系人',
                        autoHide: true
                    },
                    handler: function () { mlg.onAddMailListGridClick(); }
                }, '-', {
                    text: '编辑',
                    iconCls: 'edit',
                    tooltip: {
                        text: '选择要编辑的记录',
                        title: '编辑通讯录',
                        autoHide: true
                    },
                    handler: function () { mlg.onEditMailListGridClick(); }
                }, '-', {
                    text: '删除',
                    iconCls: 'delete',
                    tooltip: {
                        text: '删除选中的记录',
                        title: '删除通讯录',
                        autoHide: true
                    },
                    handler: function () { mlg.onDeleteMailListGridClick(); }
                }, '-', {
                    text: '查询',
                    iconCls: 'search',
                    tooltip: {
                        text: '按照条件查询记录',
                        title: '查询记录',
                        autoHide: true
                    },
                    handler: function () { mlg.onSearchClick(); }
                },
                '-', {
                    text: '发送短信',
                    iconCls: 'sendMsg',
                    tooltip: {
                        text: '发送短信',
                        title: '发送短信',
                        autoHide: true
                    },
                    handler: function () { mlg.onSendMessageClick(); }
                }, '-', {
                    text: '刷新',
                    iconCls: 'updata',
                    tooltip: {
                        text: '重新更新列表内容',
                        title: '列表刷新',
                        autoHide: true
                    },
                    handler: function () { mlg.onUpdataMailListGridClick(); }
                }]
            });
            mlg.addListener('rowdblclick', function () { mlg.onEditMailListGridClick(); });
            mlg.onUpdataMailListGridClick();      
    </script>
</head>
<body>
    <div id="mlg_div">
    </div>
</body>
</html>
